<template>
	<m-cpage :list="formList" @submit="submit"></m-cpage>
</template>

<script>
	export default {
		name:'forgetPwd',
		data() {
			let _this = this;
			return {
				formList:[
					{
						tips:true,
						icon:'checkmark-circle',
						text:'重置密码成功',
						color:'#67C23A',
						size:40,
						classes:'noBorder pb50 '
					},
					{
						button:true,
						disabled:false,
						submit:true,
						func:'submit',
						type:'',
						btn:'返回登陆',
						btnStyle:{
							color:'#fff',fontSize:'16px',
							background:'#16b7ff',borderRadius:'5rpx',
						},
						classes:'noBorder pt50'
					}
				]
			};
		},
		onLoad(options){
			this.options = options;
			if(options.type = 1){//修改密码的话，就登出
				this.$api.logout()
			}
		},
		methods:{
			submit(){
				this.utils.goPath('/pages/login/login',{},'redirectTo')
			},
		}
	}
</script>

<style lang="scss">

</style>
